package nc.tf.comm;

import java.util.List;

public class SqlUtils {

	public String genOrSql(String key, List<String> items) {
		String a = "(";
		for (String item : items) {
			a += key + "='" + item + "' or ";
		}
		if (a.length() > 1) {
			a = a.substring(0, a.length() - 3);
		}
		return a += ")";
	}

}
